{% extends "base.html" %}

{% load i18n %}

{% block title %}{% trans "Register" %}{% endblock %}


{% block content %}
    {% if form.errors %}
        <div class="alert alert-error">
            {% trans "Unable to register! Try it again." %}
        </div>
    {% endif %}
    <div id="register">
    <form action="{% url "donutscheduler.views.register" %}" method="post">
        {% csrf_token %}
        
        <input id="id_username" placeholder="{% trans "username..." %}" type="text" name="username" maxlength="30">
        <!-- <span class="helptext">Erforderlich. 30 Zeichen oder weniger. Nur alphanumerische Zeichen (Buchstaben, Ziffern und @/./+/-/_) sind     erlaubt.</span> -->
        <input id="id_password1" placeholder="{% trans "password..." %}" type="password" name="password1">
        <input id="id_password2" placeholder="{% trans "password..." %}" type="password" name="password2">
        <input type="submit" class="btn btn-primary" value="{% trans "register" %}">
        
        
    </form>
</div>
{% endblock %}

